package cn.iocoder.yudao.module.api.infrastructure.config.dto;

import cn.iocoder.yudao.framework.validation.Percent;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.PositiveOrZero;
import lombok.Data;

/**
 * 商城配置信息 Response DTO
 *
 * @author 山野羡民
 */
@Data
public class MallConfigRespDTO {

    @Schema(description = "商家后台管理入口地址")
    private String adminUrl;

    @Schema(description = "商家售卖担保类产品销售单价每 100 分需缴纳担保金多少分")
    @PositiveOrZero
    private int guaranteeTradeUnitPrice;

    @Schema(description = "成本价在供应链成本成本价的基础上加价百分比")
    @Percent
    private double supplyCostPricePercent;

    @Schema(description = "零售价在供应链建议零售价的基础上减价百分比")
    @Percent
    private double supplySalePricePercent;

    @Schema(description = "会员价在供应链建议零售价的基础上减价百分比")
    @Percent
    private double supplyVipPricePercent;

    @Schema(description = "批发价在供应链建议零售价的基础上减价百分比")
    @Percent
    private double supplyWholesalePricePercent;

}
